| // Copyright (c) 2022 Google LLC All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| use {argh::FromArgs, std::fmt::Debug}; |
| #[derive(FromArgs, PartialEq, Debug)] |
| nested: MySubCommandEnum, |
| #[derive(FromArgs, PartialEq, Debug)] |
| #[derive(FromArgs, PartialEq, Debug)] |
| #[argh(subcommand, name = "one")] |
| #[derive(FromArgs, PartialEq, Debug)] |
| #[argh(subcommand, name = "two")] |
| let toplevel: TopLevel = argh::from_env(); |
| println!("{:#?}", toplevel); |