565
759
-d, --optd string d
568
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
570
-h, --help Print help and exit
571
-V, --version Print version and exit
574
an option of this group is required
575
-a, --opta=STRING string a
576
-b, --optb=STRING string b
581
-s, --string=STRING string option
582
-i, --int=INT int option
583
-S, --short=SHORT short option
584
-l, --long=LONG long option
585
-f, --float=FLOAT float option
586
-d, --double=DOUBLE double option
587
-D, --longdouble=LONGDOUBLE longdouble option
588
-L, --longlong=LONGLONG longlong option
589
-F, --flag flag option (default=on)
590
-u, --function function option
591
--no-short no short option
592
-r, --required=STRING required option
593
-c, --conf-file=STRING config file (default=`test_conf.conf')
594
-M, --multi-string=STRING multiple string option
595
--multi-string-def=STRING multiple string option with default
596
(default=`this default')
597
-n, --noarg multiple option with no arg
598
--noarg-noshort multiple option with no arg and no short
599
--opt-arg[=STRING] option with optional arg
600
--file-save=STRING save the passed options into a file
603
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
605
-h, --help Print help and exit
606
-V, --version Print version and exit
609
an option of this group is required
610
-a, --opta=STRING string a
611
-b, --optb=STRING string b
616
-s, --string=STRING string option
617
-i, --int=INT int option
618
-S, --short=SHORT short option
619
-l, --long=LONG long option
620
-f, --float=FLOAT float option
621
-d, --double=DOUBLE double option
622
-D, --longdouble=LONGDOUBLE longdouble option
623
-L, --longlong=LONGLONG longlong option
624
-F, --flag flag option (default=on)
625
-u, --function function option
626
--no-short no short option
627
-r, --required=STRING required option
628
-c, --conf-file=STRING config file (default=`test_conf.conf')
629
-M, --multi-string=STRING multiple string option
630
--multi-string-def=STRING multiple string option with default
631
(default=`this default')
632
-n, --noarg multiple option with no arg
633
--noarg-noshort multiple option with no arg and no short
634
--opt-arg[=STRING] option with optional arg
635
--file-save=STRING save the passed options into a file
638
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
640
-h, --help Print help and exit
641
-V, --version Print version and exit
644
an option of this group is required
645
-a, --opta=STRING string a
646
-b, --optb=STRING string b
651
-s, --string=STRING string option
652
-i, --int=INT int option
653
-S, --short=SHORT short option
654
-l, --long=LONG long option
655
-f, --float=FLOAT float option
656
-d, --double=DOUBLE double option
657
-D, --longdouble=LONGDOUBLE longdouble option
658
-L, --longlong=LONGLONG longlong option
659
-F, --flag flag option (default=on)
660
-u, --function function option
661
--no-short no short option
662
-r, --required=STRING required option
663
-c, --conf-file=STRING config file (default=`test_conf.conf')
664
-M, --multi-string=STRING multiple string option
665
--multi-string-def=STRING multiple string option with default
666
(default=`this default')
667
-n, --noarg multiple option with no arg
668
--noarg-noshort multiple option with no arg and no short
669
--opt-arg[=STRING] option with optional arg
670
--file-save=STRING save the passed options into a file
673
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
675
-h, --help Print help and exit
676
-V, --version Print version and exit
679
an option of this group is required
680
-a, --opta=STRING string a
681
-b, --optb=STRING string b
686
-s, --string=STRING string option
687
-i, --int=INT int option
688
-S, --short=SHORT short option
689
-l, --long=LONG long option
690
-f, --float=FLOAT float option
691
-d, --double=DOUBLE double option
692
-D, --longdouble=LONGDOUBLE longdouble option
693
-L, --longlong=LONGLONG longlong option
694
-F, --flag flag option (default=on)
695
-u, --function function option
696
--no-short no short option
697
-r, --required=STRING required option
698
-c, --conf-file=STRING config file (default=`test_conf.conf')
699
-M, --multi-string=STRING multiple string option
700
--multi-string-def=STRING multiple string option with default
701
(default=`this default')
702
-n, --noarg multiple option with no arg
703
--noarg-noshort multiple option with no arg and no short
704
--opt-arg[=STRING] option with optional arg
705
--file-save=STRING save the passed options into a file
708
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
710
-h, --help Print help and exit
711
-V, --version Print version and exit
714
an option of this group is required
715
-a, --opta=STRING string a
716
-b, --optb=STRING string b
721
-s, --string=STRING string option
722
-i, --int=INT int option
723
-S, --short=SHORT short option
724
-l, --long=LONG long option
725
-f, --float=FLOAT float option
726
-d, --double=DOUBLE double option
727
-D, --longdouble=LONGDOUBLE longdouble option
728
-L, --longlong=LONGLONG longlong option
729
-F, --flag flag option (default=on)
730
-u, --function function option
731
--no-short no short option
732
-r, --required=STRING required option
733
-c, --conf-file=STRING config file (default=`test_conf.conf')
734
-M, --multi-string=STRING multiple string option
735
--multi-string-def=STRING multiple string option with default
736
(default=`this default')
737
-n, --noarg multiple option with no arg
738
--noarg-noshort multiple option with no arg and no short
739
--opt-arg[=STRING] option with optional arg
740
--file-save=STRING save the passed options into a file
743
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
745
-h, --help Print help and exit
746
-V, --version Print version and exit
749
an option of this group is required
750
-a, --opta=STRING string a
751
-b, --optb=STRING string b
756
-s, --string=STRING string option
757
-i, --int=INT int option
758
-S, --short=SHORT short option
759
-l, --long=LONG long option
760
-f, --float=FLOAT float option
761
-d, --double=DOUBLE double option
762
-D, --longdouble=LONGDOUBLE longdouble option
763
-L, --longlong=LONGLONG longlong option
764
-F, --flag flag option (default=on)
765
-u, --function function option
766
--no-short no short option
767
-r, --required=STRING required option
768
-c, --conf-file=STRING config file (default=`test_conf.conf')
769
-M, --multi-string=STRING multiple string option
770
--multi-string-def=STRING multiple string option with default
771
(default=`this default')
772
-n, --noarg multiple option with no arg
773
--noarg-noshort multiple option with no arg and no short
774
--opt-arg[=STRING] option with optional arg
775
--file-save=STRING save the passed options into a file
763
Usage: test_modes [OPTIONS]... [FILES]...
765
-h, --help Print help and exit
766
-V, --version Print version and exit
768
some non mode options:
769
-N, --no-mode a generic option not beloging to any mode
770
--no-mode2=STRING another generic option not beloging to any mode
772
some modes just for testing:
775
any option of this mode is in contrast with any option of the other mode
776
Notice that this description is quite long so it may spawn many lines...
777
fortunately gengetopt will wrap it for you :-)
779
-A, --optA[=STRING] string A (mandatory)
780
-M, --optAmul[=STRING] string M
785
-d, --optd string d (mandatory)
788
-m, --mopt=INT option of my mode
789
*** test_conf_parser -h
792
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
794
-h, --help Print help and exit
795
-V, --version Print version and exit
798
an option of this group is required
799
-a, --opta=STRING string a
800
-b, --optb=STRING string b
805
-s, --string=STRING string option
806
-i, --int=INT int option
807
-S, --short=SHORT short option
808
-l, --long=LONG long option
809
-f, --float=FLOAT float option
810
-d, --double=DOUBLE double option
811
-D, --longdouble=LONGDOUBLE longdouble option
812
-L, --longlong=LONGLONG longlong option
813
-F, --flag flag option (default=on)
814
-u, --function function option
815
--no-short no short option
816
-r, --required=STRING required option
817
-c, --conf-file=STRING config file (default=`test_conf.conf')
818
-M, --multi-string=STRING multiple string option
819
--multi-string-def=STRING multiple string option with default
820
(default=`this default')
821
-n, --noarg multiple option with no arg
822
--noarg-noshort multiple option with no arg and no short
823
--opt-arg[=STRING] option with optional arg
824
--file-save=STRING save the passed options into a file
825
*** test_conf_parser_ov -h
828
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
830
-h, --help Print help and exit
831
-V, --version Print version and exit
834
an option of this group is required
835
-a, --opta=STRING string a
836
-b, --optb=STRING string b
841
-s, --string=STRING string option
842
-i, --int=INT int option
843
-S, --short=SHORT short option
844
-l, --long=LONG long option
845
-f, --float=FLOAT float option
846
-d, --double=DOUBLE double option
847
-D, --longdouble=LONGDOUBLE longdouble option
848
-L, --longlong=LONGLONG longlong option
849
-F, --flag flag option (default=on)
850
-u, --function function option
851
--no-short no short option
852
-r, --required=STRING required option
853
-c, --conf-file=STRING config file (default=`test_conf.conf')
854
-M, --multi-string=STRING multiple string option
855
--multi-string-def=STRING multiple string option with default
856
(default=`this default')
857
-n, --noarg multiple option with no arg
858
--noarg-noshort multiple option with no arg and no short
859
--opt-arg[=STRING] option with optional arg
860
--file-save=STRING save the passed options into a file
861
*** test_conf_parser_ov2 -h
864
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
866
-h, --help Print help and exit
867
-V, --version Print version and exit
870
an option of this group is required
871
-a, --opta=STRING string a
872
-b, --optb=STRING string b
877
-s, --string=STRING string option
878
-i, --int=INT int option
879
-S, --short=SHORT short option
880
-l, --long=LONG long option
881
-f, --float=FLOAT float option
882
-d, --double=DOUBLE double option
883
-D, --longdouble=LONGDOUBLE longdouble option
884
-L, --longlong=LONGLONG longlong option
885
-F, --flag flag option (default=on)
886
-u, --function function option
887
--no-short no short option
888
-r, --required=STRING required option
889
-c, --conf-file=STRING config file (default=`test_conf.conf')
890
-M, --multi-string=STRING multiple string option
891
--multi-string-def=STRING multiple string option with default
892
(default=`this default')
893
-n, --noarg multiple option with no arg
894
--noarg-noshort multiple option with no arg and no short
895
--opt-arg[=STRING] option with optional arg
896
--file-save=STRING save the passed options into a file
897
*** test_conf_parser_ov3 -h
900
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
902
-h, --help Print help and exit
903
-V, --version Print version and exit
906
an option of this group is required
907
-a, --opta=STRING string a
908
-b, --optb=STRING string b
913
-s, --string=STRING string option
914
-i, --int=INT int option
915
-S, --short=SHORT short option
916
-l, --long=LONG long option
917
-f, --float=FLOAT float option
918
-d, --double=DOUBLE double option
919
-D, --longdouble=LONGDOUBLE longdouble option
920
-L, --longlong=LONGLONG longlong option
921
-F, --flag flag option (default=on)
922
-u, --function function option
923
--no-short no short option
924
-r, --required=STRING required option
925
-c, --conf-file=STRING config file (default=`test_conf.conf')
926
-M, --multi-string=STRING multiple string option
927
--multi-string-def=STRING multiple string option with default
928
(default=`this default')
929
-n, --noarg multiple option with no arg
930
--noarg-noshort multiple option with no arg and no short
931
--opt-arg[=STRING] option with optional arg
932
--file-save=STRING save the passed options into a file
933
*** test_conf_parser_ov4 -h
936
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
938
-h, --help Print help and exit
939
-V, --version Print version and exit
942
an option of this group is required
943
-a, --opta=STRING string a
944
-b, --optb=STRING string b
949
-s, --string=STRING string option
950
-i, --int=INT int option
951
-S, --short=SHORT short option
952
-l, --long=LONG long option
953
-f, --float=FLOAT float option
954
-d, --double=DOUBLE double option
955
-D, --longdouble=LONGDOUBLE longdouble option
956
-L, --longlong=LONGLONG longlong option
957
-F, --flag flag option (default=on)
958
-u, --function function option
959
--no-short no short option
960
-r, --required=STRING required option
961
-c, --conf-file=STRING config file (default=`test_conf.conf')
962
-M, --multi-string=STRING multiple string option
963
--multi-string-def=STRING multiple string option with default
964
(default=`this default')
965
-n, --noarg multiple option with no arg
966
--noarg-noshort multiple option with no arg and no short
967
--opt-arg[=STRING] option with optional arg
968
--file-save=STRING save the passed options into a file
969
*** test_conf_parser_file_save -h
972
Usage: test_conf_parser [OPTIONS]... [OTHER NAMES]...
974
-h, --help Print help and exit
975
-V, --version Print version and exit
978
an option of this group is required
979
-a, --opta=STRING string a
980
-b, --optb=STRING string b
985
-s, --string=STRING string option
986
-i, --int=INT int option
987
-S, --short=SHORT short option
988
-l, --long=LONG long option
989
-f, --float=FLOAT float option
990
-d, --double=DOUBLE double option
991
-D, --longdouble=LONGDOUBLE longdouble option
992
-L, --longlong=LONGLONG longlong option
993
-F, --flag flag option (default=on)
994
-u, --function function option
995
--no-short no short option
996
-r, --required=STRING required option
997
-c, --conf-file=STRING config file (default=`test_conf.conf')
998
-M, --multi-string=STRING multiple string option
999
--multi-string-def=STRING multiple string option with default
1000
(default=`this default')
1001
-n, --noarg multiple option with no arg
1002
--noarg-noshort multiple option with no arg and no short
1003
--opt-arg[=STRING] option with optional arg
1004
--file-save=STRING save the passed options into a file
1005
*** test_multiple -h
776
1006
test_multiple 1.0
778
1008
Usage: test_multiple [OPTIONS]... [FILES]...
880
1161
-F, --first-cmd=first command the first command line to parse (mandatory)
881
1162
-S, --second-cmd=second command
882
1163
the second command line to parse (mandatory)
885
This is just a gengetopt's test file
887
Usage: test_all_opts [OPTIONS]... [FILES]...
889
This is just a test file
892
command line type options.
894
In ggo files comments start with # and end at EOL
896
-h, --help Print help and exit
897
--full-help Print help, including hidden options, and exit
898
-V, --version Print version and exit
900
-s, --string=STRING string option
901
-i, --int=INT int option
902
-S, --short=SHORT short option
903
-l, --long=LONG long option
904
-f, --float=FLOAT float option
905
-d, --double=DOUBLE double option
906
-D, --longdouble=LONGDOUBLE longdouble option
907
-L, --longlong=LONGLONG longlong option
908
-F, --flag flag option (default=on)
909
-u, --function function option
910
--no-short no short option
911
--opt-arg[=STRING] option with optional arg
912
-o, --opt-arg-short[=STRING] option with optional arg (short)
913
-r, --required=STRING required option (mandatory)
915
Before the dependant option there is a hidden option, so it shouldn't be
916
visible in the output of --help, but it will be visible in the output of
919
-H, --hidden=INT hidden option
920
-A, --dependant=STRING option that depends on opt-arg
922
This is a text line just to write something in the output
924
Notice that a text line can contain line breaks, just like this very text, and
925
that, just like all the other texts, it is wrapped by gengetopt automatically
928
Moreover, text can be specified more than once in the input file.
930
--very-very-long-option=STRING
931
the name of this option is long enough to make
932
this description begin on a new line
933
-y, --assume-multimeth-virtual
934
the name of this option is just as long as the
935
maximum allowed, so this description begin on
937
--file-save=STRING save the passed options into a file
939
A text after all options.
942
This is just a gengetopt's test file
944
Usage: test_all_opts -rSTRING|--required=STRING [-h|--help] [--full-help]
945
[-V|--version] [-sSTRING|--string=STRING] [-iINT|--int=INT]
946
[-SSHORT|--short=SHORT] [-lLONG|--long=LONG] [-fFLOAT|--float=FLOAT]
947
[-dDOUBLE|--double=DOUBLE] [-DLONGDOUBLE|--longdouble=LONGDOUBLE]
948
[-LLONGLONG|--longlong=LONGLONG] [-F|--flag] [-u|--function]
949
[--no-short] [--opt-arg=STRING] [-oSTRING|--opt-arg-short=STRING]
950
[-ASTRING|--dependant=STRING] [--very-very-long-option=STRING]
951
[-y|--assume-multimeth-virtual] [--file-save=STRING]
953
This is just a test file
956
command line type options.
958
In ggo files comments start with # and end at EOL
961
-h, --help Print help and exit
962
--full-help Print help, including hidden options, and exit
963
-V, --version Print version and exit
965
-s, --string=STRING string option
966
-i, --int=INT int option
967
-S, --short=SHORT short option
968
-l, --long=LONG long option
969
-f, --float=FLOAT float option
970
-d, --double=DOUBLE double option
971
-D, --longdouble=LONGDOUBLE longdouble option
972
-L, --longlong=LONGLONG longlong option
973
-F, --flag flag option (default=on)
974
-u, --function function option
975
--no-short no short option
976
--opt-arg[=STRING] option with optional arg
977
-o, --opt-arg-short[=STRING] option with optional arg (short)
978
-r, --required=STRING required option
980
Before the dependant option there is a hidden option, so it shouldn't be
981
visible in the output of --help, but it will be visible in the output of
1164
*** test_sections_option_help -h
1165
help_help: -h, --help Print help and exit
1166
version_help: -V, --version Print version and exit
1167
string_help: -s, --string=STRING string option
1168
int_help: -i, --int=INT int option
1169
short_help: -S, --short=SHORT short option
1170
long_help: -l, --long=LONG long option
1171
float_help: -f, --float=FLOAT float option
1172
double_help: -d, --double=DOUBLE double option
1173
longdouble_help: -D, --longdouble=LONGDOUBLE longdouble option
1174
longlong_help: -L, --longlong=LONGLONG longlong option
1175
flag_help: -F, --flag flag option (default=on)
1176
function_help: -u, --function function option
1177
no_short_help: --no-short no short option
1178
required_help: -r, --required=STRING required option (mandatory)
1179
*** test_all_opts_option_help -h
1180
help_help: -h, --help Print help and exit
1181
full_help_help: --full-help Print help, including hidden options, and exit
1182
version_help: -V, --version Print version and exit
1183
string_help: -s, --string=STRING string option
1184
int_help: -i, --int=INT int option
1185
short_help: -S, --short=SHORT short option
1186
long_help: -l, --long=LONG long option
1187
float_help: -f, --float=FLOAT float option
1188
double_help: -d, --double=DOUBLE double option
1189
longdouble_help: -D, --longdouble=LONGDOUBLE longdouble option
1190
longlong_help: -L, --longlong=LONGLONG longlong option
1191
flag_help: -F, --flag flag option (default=on)
1192
function_help: -u, --function function option
1193
no_short_help: --no-short no short option
1194
opt_arg_help: --opt-arg[=STRING] option with optional arg
1195
opt_arg_short_help: -o, --opt-arg-short[=STRING] option with optional arg (short)
1196
required_help: -r, --required=STRING required option (mandatory)
1197
hidden_help: -H, --hidden=INT hidden option
1198
dependant_help: -A, --dependant=STRING option that depends on opt-arg
1199
very_very_long_option_help: --very-very-long-option=STRING
1200
the name of this option is long enough to make
1201
this description begin on a new line
1202
assume_multimeth_virtual_help: -y, --assume-multimeth-virtual
1203
the name of this option is just as long as the
1204
maximum allowed, so this description begin on
1206
file_save_help: --file-save=STRING save the passed options into a file
1207
*** test_groups_option_help -h
1208
help_help: -h, --help Print help and exit
1209
version_help: -V, --version Print version and exit
1210
opta_help: -a, --opta string a
1211
optA_help: -A, --optA[=STRING] string A
1212
optAmul_help: -M, --optAmul[=STRING] string M
1213
optb_help: -b, --optb string b
1214
optc_help: --optc string c
1215
optd_help: -d, --optd string d
1216
*** test_modes_option_help -h
1217
help_help: -h, --help Print help and exit
1218
version_help: -V, --version Print version and exit
1219
opta_help: -a, --opta string a
1220
optA_help: -A, --optA[=STRING] string A (mandatory)
1221
optAmul_help: -M, --optAmul[=STRING] string M
1222
optb_help: -b, --optb string b
1223
optc_help: --optc string c
1224
optd_help: -d, --optd string d (mandatory)
1225
mopt_help: -m, --mopt=INT option of my mode
1226
*** test_no_options -h
1229
This is a program with no option but the default ones
1231
Usage: test_no_options [OPTIONS]... [FILES]...
1233
-h, --help Print help and exit
1234
-V, --version Print version and exit
1235
*** test_all_opts --full-help
1238
This is just a gengetopt's test file
1240
Usage: test_all_opts [OPTIONS]... [FILES]...
1242
This is just a test file
1244
to test all possible
1245
command line type options.
1247
In ggo files comments start with # and end at EOL
1249
-h, --help Print help and exit
1250
--detailed-help Print help, including all details and hidden
1252
--full-help Print help, including hidden options, and exit
1253
-V, --version Print version and exit
1255
-s, --string=STRING string option
1256
-i, --int=INT int option
1257
-S, --short=SHORT short option
1258
-l, --long=LONG long option
1259
-f, --float=FLOAT float option
1260
-d, --double=DOUBLE double option
1261
-D, --longdouble=LONGDOUBLE longdouble option
1262
-L, --longlong=LONGLONG longlong option
1263
-F, --flag flag option (default=on)
1264
-u, --function function option
1265
--no-short no short option
1266
--opt-arg[=STRING] option with optional arg
1267
-o, --opt-arg-short[=STRING] option with optional arg (short)
1268
-r, --required=STRING required option (mandatory)
1270
Before the dependant option there is a hidden option, so it shouldn't be
1271
visible in the output of --help, but it will be visible in the output of
1274
-H, --hidden=INT hidden option
1275
-A, --dependant=STRING option that depends on opt-arg
1277
This is a text line just to write something in the output
1279
Notice that a text line can contain line breaks, just like this very text, and
1280
that, just like all the other texts, it is wrapped by gengetopt automatically
1283
Moreover, text can be specified more than once in the input file.
1285
--very-very-long-option=STRING
1286
the name of this option is long enough to make
1287
this description begin on a new line
1288
-y, --assume-multimeth-virtual
1289
the name of this option is just as long as the
1290
maximum allowed, so this description begin on
1292
--file-save=STRING save the passed options into a file
1294
A text after all options.
1295
*** test_all_opts --detailed-help
1298
This is just a gengetopt's test file
1300
Usage: test_all_opts [OPTIONS]... [FILES]...
1302
This is just a test file
1304
to test all possible
1305
command line type options.
1307
In ggo files comments start with # and end at EOL
1309
-h, --help Print help and exit
1310
--detailed-help Print help, including all details and hidden
1312
--full-help Print help, including hidden options, and exit
1313
-V, --version Print version and exit
1315
-s, --string=STRING string option
1316
-i, --int=INT int option
1317
-S, --short=SHORT short option
1318
-l, --long=LONG long option
1319
-f, --float=FLOAT float option
1320
-d, --double=DOUBLE double option
1321
-D, --longdouble=LONGDOUBLE longdouble option
1322
-L, --longlong=LONGLONG longlong option
1323
-F, --flag flag option (default=on)
1324
-u, --function function option
1326
a function option is basically an option with no argument. It can be used,
1327
e.g., to specify a specific behavior for a program.
1329
Well, this further explanation is quite useless, but it's only to show an
1330
example of an option with details, which will be printed only when
1331
--detailed-help is given at the command line.
1333
--no-short no short option
1334
--opt-arg[=STRING] option with optional arg
1335
-o, --opt-arg-short[=STRING] option with optional arg (short)
1336
-r, --required=STRING required option (mandatory)
1337
NOTICE: This option is required, so, unless you specify (-h)--help or
1338
(-V)--version, you must always specify this option (and its argument) at
1341
Before the dependant option there is a hidden option, so it shouldn't be
1342
visible in the output of --help, but it will be visible in the output of
1345
-H, --hidden=INT hidden option
1346
-A, --dependant=STRING option that depends on opt-arg
1348
This is a text line just to write something in the output
1350
Notice that a text line can contain line breaks, just like this very text, and
1351
that, just like all the other texts, it is wrapped by gengetopt automatically
1354
Moreover, text can be specified more than once in the input file.
1356
--very-very-long-option=STRING
1357
the name of this option is long enough to make
1358
this description begin on a new line
1359
-y, --assume-multimeth-virtual
1360
the name of this option is just as long as the
1361
maximum allowed, so this description begin on
1363
--file-save=STRING save the passed options into a file
1365
A text after all options.
1366
*** test_no_handle_help --detailed-help
1367
####################
1369
####################
1370
test_no_handle_help 1.0
1372
Usage: test_no_handle_help [OPTIONS]... [FILES]...
1374
-h, --help Print help and exit
1375
--detailed-help Print help, including all details and hidden options,
1377
-V, --version Print version and exit
1378
--height=INT this is the description of height
1379
These are the details of option height
1380
--vavoom=STRING this is the description of vavoom
1381
####################
1383
####################
1386
This is just a gengetopt's test file
1388
Usage: test_all_opts -rSTRING|--required=STRING [-h|--help] [--detailed-help]
1389
[--full-help] [-V|--version] [-sSTRING|--string=STRING]
1390
[-iINT|--int=INT] [-SSHORT|--short=SHORT] [-lLONG|--long=LONG]
1391
[-fFLOAT|--float=FLOAT] [-dDOUBLE|--double=DOUBLE]
1392
[-DLONGDOUBLE|--longdouble=LONGDOUBLE]
1393
[-LLONGLONG|--longlong=LONGLONG] [-F|--flag] [-u|--function]
1394
[--no-short] [--opt-arg=STRING] [-oSTRING|--opt-arg-short=STRING]
1395
[-ASTRING|--dependant=STRING] [--very-very-long-option=STRING]
1396
[-y|--assume-multimeth-virtual] [--file-save=STRING]
1398
This is just a test file
1400
to test all possible
1401
command line type options.
1403
In ggo files comments start with # and end at EOL
1406
-h, --help Print help and exit
1407
--detailed-help Print help, including all details and hidden
1409
--full-help Print help, including hidden options, and exit
1410
-V, --version Print version and exit
1412
-s, --string=STRING string option
1413
-i, --int=INT int option
1414
-S, --short=SHORT short option
1415
-l, --long=LONG long option
1416
-f, --float=FLOAT float option
1417
-d, --double=DOUBLE double option
1418
-D, --longdouble=LONGDOUBLE longdouble option
1419
-L, --longlong=LONGLONG longlong option
1420
-F, --flag flag option (default=on)
1421
-u, --function function option
1422
--no-short no short option
1423
--opt-arg[=STRING] option with optional arg
1424
-o, --opt-arg-short[=STRING] option with optional arg (short)
1425
-r, --required=STRING required option
1427
Before the dependant option there is a hidden option, so it shouldn't be
1428
visible in the output of --help, but it will be visible in the output of
1431
-A, --dependant=STRING option that depends on opt-arg
1433
This is a text line just to write something in the output
1435
Notice that a text line can contain line breaks, just like this very text, and
1436
that, just like all the other texts, it is wrapped by gengetopt automatically
1439
Moreover, text can be specified more than once in the input file.
1441
--very-very-long-option=STRING
1442
the name of this option is long enough to make
1443
this description begin on a new line
1444
-y, --assume-multimeth-virtual
1445
the name of this option is just as long as the
1446
maximum allowed, so this description begin on
1448
--file-save=STRING save the passed options into a file
1450
A text after all options.
1453
This is just a gengetopt's test file
1455
Usage: test_all_opts -rSTRING|--required=STRING [-h|--help] [--detailed-help]
1456
[--full-help] [-V|--version] [-sSTRING|--string=STRING]
1457
[-iINT|--int=INT] [-SSHORT|--short=SHORT] [-lLONG|--long=LONG]
1458
[-fFLOAT|--float=FLOAT] [-dDOUBLE|--double=DOUBLE]
1459
[-DLONGDOUBLE|--longdouble=LONGDOUBLE]
1460
[-LLONGLONG|--longlong=LONGLONG] [-F|--flag] [-u|--function]
1461
[--no-short] [--opt-arg=STRING] [-oSTRING|--opt-arg-short=STRING]
1462
[-ASTRING|--dependant=STRING] [--very-very-long-option=STRING]
1463
[-y|--assume-multimeth-virtual] [--file-save=STRING]
1465
This is just a test file
1467
to test all possible
1468
command line type options.
1470
In ggo files comments start with # and end at EOL
1473
-h, --help Print help and exit
1474
--detailed-help Print help, including all details and hidden
1476
--full-help Print help, including hidden options, and exit
1477
-V, --version Print version and exit
1479
-s, --string=STRING string option
1480
-i, --int=INT int option
1481
-S, --short=SHORT short option
1482
-l, --long=LONG long option
1483
-f, --float=FLOAT float option
1484
-d, --double=DOUBLE double option
1485
-D, --longdouble=LONGDOUBLE longdouble option
1486
-L, --longlong=LONGLONG longlong option
1487
-F, --flag flag option (default=on)
1488
-u, --function function option
1489
--no-short no short option
1490
--opt-arg[=STRING] option with optional arg
1491
-o, --opt-arg-short[=STRING] option with optional arg (short)
1492
-r, --required=STRING required option
1494
Before the dependant option there is a hidden option, so it shouldn't be
1495
visible in the output of --help, but it will be visible in the output of
1498
-H, --hidden=INT hidden option
1499
-A, --dependant=STRING option that depends on opt-arg
1501
This is a text line just to write something in the output
1503
Notice that a text line can contain line breaks, just like this very text, and
1504
that, just like all the other texts, it is wrapped by gengetopt automatically
1507
Moreover, text can be specified more than once in the input file.
1509
--very-very-long-option=STRING
1510
the name of this option is long enough to make
1511
this description begin on a new line
1512
-y, --assume-multimeth-virtual
1513
the name of this option is just as long as the
1514
maximum allowed, so this description begin on
1516
--file-save=STRING save the passed options into a file
1518
A text after all options.
1521
Usage: test_modes [-h|--help] [-V|--version] [-N|--no-mode] [--no-mode2=STRING]
1522
or : test_modes -d|--optd [--optc]
1523
or : test_modes -ASTRING|--optA=STRING [-a|--opta]
1524
[-MSTRING|--optAmul=STRING] [-b|--optb]
1525
or : test_modes [-mINT|--mopt=INT]
1527
-h, --help Print help and exit
1528
-V, --version Print version and exit
1530
some non mode options:
1531
-N, --no-mode a generic option not beloging to any mode
1532
--no-mode2=STRING another generic option not beloging to any mode
1534
some modes just for testing:
1537
any option of this mode is in contrast with any option of the other mode
1538
Notice that this description is quite long so it may spawn many lines...
1539
fortunately gengetopt will wrap it for you :-)
1541
-A, --optA[=STRING] string A
1542
-M, --optAmul[=STRING] string M
1550
-m, --mopt=INT option of my mode
1553
This is just a gengetopt's test file
1555
Usage: test_all_opts -rSTRING|--required=STRING [-h|--help] [--detailed-help]
1556
[--full-help] [-V|--version] [-sSTRING|--string=STRING]
1557
[-iINT|--int=INT] [-SSHORT|--short=SHORT] [-lLONG|--long=LONG]
1558
[-fFLOAT|--float=FLOAT] [-dDOUBLE|--double=DOUBLE]
1559
[-DLONGDOUBLE|--longdouble=LONGDOUBLE]
1560
[-LLONGLONG|--longlong=LONGLONG] [-F|--flag] [-u|--function]
1561
[--no-short] [--opt-arg=STRING] [-oSTRING|--opt-arg-short=STRING]
1562
[-ASTRING|--dependant=STRING] [--very-very-long-option=STRING]
1563
[-y|--assume-multimeth-virtual] [--file-save=STRING]
1565
This is just a test file
1567
to test all possible
1568
command line type options.
1570
In ggo files comments start with # and end at EOL
1573
-h, --help Print help and exit
1574
--detailed-help Print help, including all details and hidden
1576
--full-help Print help, including hidden options, and exit
1577
-V, --version Print version and exit
1579
-s, --string=STRING string option
1580
-i, --int=INT int option
1581
-S, --short=SHORT short option
1582
-l, --long=LONG long option
1583
-f, --float=FLOAT float option
1584
-d, --double=DOUBLE double option
1585
-D, --longdouble=LONGDOUBLE longdouble option
1586
-L, --longlong=LONGLONG longlong option
1587
-F, --flag flag option (default=on)
1588
-u, --function function option
1590
a function option is basically an option with no argument. It can be used,
1591
e.g., to specify a specific behavior for a program.
1593
Well, this further explanation is quite useless, but it's only to show an
1594
example of an option with details, which will be printed only when
1595
--detailed-help is given at the command line.
1597
--no-short no short option
1598
--opt-arg[=STRING] option with optional arg
1599
-o, --opt-arg-short[=STRING] option with optional arg (short)
1600
-r, --required=STRING required option
1601
NOTICE: This option is required, so, unless you specify (-h)--help or
1602
(-V)--version, you must always specify this option (and its argument) at
1605
Before the dependant option there is a hidden option, so it shouldn't be
1606
visible in the output of --help, but it will be visible in the output of
1609
-H, --hidden=INT hidden option
984
1610
-A, --dependant=STRING option that depends on opt-arg
986
1612
This is a text line just to write something in the output