-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy pathChangeLog
1880 lines (1368 loc) · 72.1 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2015-10-16 Giacomo Stelluti Scala <[email protected]>
* PR #255 fixes Issue #254 by @scadorel Merged.
2015-09-22 Giacomo Stelluti Scala <[email protected]>
* Issue #241 (reported by @pvmraghunandan) Fixed.
2015-09-13 Giacomo Stelluti Scala <[email protected]>
* Added properties test project using FsCheck.
2015-09-07 Giacomo Stelluti Scala <[email protected]>
* Internal refactoring on OptionMapper.
2015-09-03 Giacomo Stelluti Scala <[email protected]>
* Updated RailwaySharp source reference.
2015-09-02 Giacomo Stelluti Scala <[email protected]>
* PR #231 (by @kshanafelt) Merged.
2015-08-29 Giacomo Stelluti Scala <[email protected]>
* Internal refactoring.
2015-08-27 Giacomo Stelluti Scala <[email protected]>
* PR #227 (by @cfeilen) Merged.
2015-08-24 Giacomo Stelluti Scala <[email protected]>
* PR #227 (by @Thilas) Merged.
* Reverted back to Tuple<...> instead of TokePartitions type.
2015-08-20 Giacomo Stelluti Scala <[email protected]>
* All ParserResult<T>.Return renamed to MapResult.
2015-08-19 Giacomo Stelluti Scala <[email protected]>
* Issue #225 (reported by @rmunn) Fixed.
* Issue #225/b (reported by @rmunn) Fixed.
2015-08-15 Giacomo Stelluti Scala <[email protected]>
* Centralizing Tokenizer configuration.
2015-08-14 Giacomo Stelluti Scala <[email protected]>
* Internal refactoring.
2015-08-13 Giacomo Stelluti Scala <[email protected]>
* Replacing Either<L,R> with Result<TSucc, TMsg>.
2015-08-10 Giacomo Stelluti Scala <[email protected]>
* Internal refactoring.
2015-08-07 Giacomo Stelluti Scala <[email protected]>
* Renaming tests fakes.
* Issue #220 Implemented.
2015-08-06 Giacomo Stelluti Scala <[email protected]>
* PR #216 (by @Thilas) Merged.
2015-08-05 Giacomo Stelluti Scala <[email protected]>
* Issue #218 Fixed (IgnoreUnknownArguments).
2015-08-03 Giacomo Stelluti Scala <[email protected]>
* Issue #65 (re) Fixed for 2.0.x library.
2015-08-02 Giacomo Stelluti Scala <[email protected]>
* Changes in usage text handling.
* PR #215 (by @Thilas) Merged.
2015-08-01 Giacomo Stelluti Scala <[email protected]>
* Fixing XML comments.
2015-07-31 Giacomo Stelluti Scala <[email protected]>
* Issue #210 (reported by @mac2000) Implemented.
* Test refactorings.
2015-07-30 Giacomo Stelluti Scala <[email protected]>
* Issue #208 Implemented (extended usage text support).
* Minor HelpText refactorings.
2015-07-28 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings.
2015-07-27 Giacomo Stelluti Scala <[email protected]>
* Added FormatCommandLine() overload with settings.
2015-07-26 Giacomo Stelluti Scala <[email protected]>
* ParserResult<T> internally refactored, minor breaking changes to HelpText.
* Internal refactorings.
2015-07-25 Giacomo Stelluti Scala <[email protected]>
* Adding unparse support.
* PR #207 Merged.
* Using new Paket-friendly CSharpx and RailwaySharp.
* Added F# option support to FormatCommandLine().
2015-07-23 Giacomo Stelluti Scala <[email protected]>
* Test project refactoring.
2015-07-21 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings (using CSharpx.EnumerableExtensions).
* PR #205 (by @forki) Merged.
* Internal refactorings.
* Refactoring with RailwaySharp.ErrorHandling.
2015-07-20 Giacomo Stelluti Scala <[email protected]>
* Issue #203 Implemented
* Internal refactorings.
* Issue #204 (reported by @Kimi-Arthur) Fixed.
* TypeConverter refactored with CSharpx.Either<T1, T2>.
2015-07-19 Giacomo Stelluti Scala <[email protected]>
* Managing deps with Paket.
2015-07-18 Giacomo Stelluti Scala <[email protected]>
* Issue #202 (reported by @StevenLiekens) Fixed.
* Internal refactorings in rule enforcement.
* Added a test for #202, method rewritten and (re)fixed.
* More internal refactorings in rule enforcement.
2015-07-15 Giacomo Stelluti Scala <[email protected]>
* Reverting back suprflous check.
2015-07-14 Giacomo Stelluti Scala <[email protected]>
* PR #197 (by @Thilas) Implemented.
2015-07-13 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings in CopyrighInfo, HeadingInfo.
2015-07-12 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings in HelpText.
2015-07-10 Giacomo Stelluti Scala <[email protected]>
* Issue #191 (--version\version added to help screen) Fixed.
* Issue #162 (`ValueAttribute` handled in help screen) Implemented.
2015-07-09 Giacomo Stelluti Scala <[email protected]>
* Issue #189 Implemented.
* Issue #190 Fixed/Implemented (--help/--version/version for verbs).
* Internal refactorings in InstanceChooser.
* Issue #188 Fixed.
2015-07-08 Giacomo Stelluti Scala <[email protected]>
* Automatic --version handling.
* Added C# demo.
* Internal refactorings in HelpText.
2015-07-07 Giacomo Stelluti Scala <[email protected]>
* Added WithParsed<T>() for verbs.
* Added Return<T1...T16>() for verbs.
2015-07-06 Giacomo Stelluti Scala <[email protected]>
* Issue #183 Fixed by @Thilas.
* Issue #183 reported by @Thilas Fixed.
* Default '--help' command refactored.
2015-07-05 Giacomo Stelluti Scala <[email protected]>
* Added Return<TSource,TResult>(...) to ParserResult<TSource>.
2015-07-04 Giacomo Stelluti Scala <[email protected]>
* Issue #180 Implemented.
* Issue #181 Implemented.
2015-07-03 Giacomo Stelluti Scala <[email protected]>
* Issue #179 Implemented.
2015-07-02 Giacomo Stelluti Scala <[email protected]>
* PR #123 by @smbecker Merged.
* Fixes.
2015-06-30 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings.
* Support for immutable types.
* Fixes.
2015-06-29 Giacomo Stelluti Scala <[email protected]>
* Issue #112 Fixed.
2015-06-28 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings.
2015-06-27 Giacomo Stelluti Scala <[email protected]>
* Disallowed Min=Max=0 for sequences, raising exception.
* Issue #177 Fixed.
2015-06-26 Giacomo Stelluti Scala <[email protected]>
* Added support for FSharpOption<T>.
2015-06-25 Giacomo Stelluti Scala <[email protected]>
* Issue #155 Fixed (thanks to @guyzeug).
2015-06-24 Giacomo Stelluti Scala <[email protected]>
* PR #171 merged.
2015-06-23 Giacomo Stelluti Scala <[email protected]>
* Issue #172 Fixed.
2015-06-22 Giacomo Stelluti Scala <[email protected]>
* Fixing FAKE build script.
2015-06-20 Giacomo Stelluti Scala <[email protected]>
* Internal refactorings.
* New tests added.
2015-06-20 Giacomo Stelluti Scala <[email protected]>
* Removed reduntant internal params null checks.
2015-06-19 Giacomo Stelluti Scala <[email protected]>
* Better GetHashCode() implementations.
2015-06-19 Giacomo Stelluti Scala <[email protected]>
* Adding more tests for token partitioners.
* Fix in Sequence.Partition().
* Sequence.Partition() rewritten.
* Refactoring for Increase Testability.
* Little change to allow .NET 4.5 build.
2015-06-18 Giacomo Stelluti Scala <[email protected]>
* Important fix on scalar string value adjacent to string sequence (without constraints).
* Refactoring for Increase Testability.
2015-06-17 Giacomo Stelluti Scala <[email protected]>
* Fixing Issue #164.
2015-06-16 Giacomo Stelluti Scala <[email protected]>
* Increased test coverage using theories.
2015-06-15 Giacomo Stelluti Scala <[email protected]>
* Fixing Issue #159.
* Fixing Issue #160.
* Fixing Issue #161.
2015-06-13 Giacomo Stelluti Scala <[email protected]>
* Chaning Separator from string to char.
* Fixing Issue #157.
2015-06-12 Giacomo Stelluti Scala <[email protected]>
* Issue #68, option list behaviour.
2015-06-10 Giacomo Stelluti Scala <[email protected]>
* Pull request #154 merged.
2015-06-07 Giacomo Stelluti Scala <[email protected]>
* Pull request #144 merged.
2015-06-06 Giacomo Stelluti Scala <[email protected]>
* Pull request #119 merged.
2015-06-05 Giacomo Stelluti Scala <[email protected]>
* Pull request #103 merged (solving conflicts).
2015-06-04 Giacomo Stelluti Scala <[email protected]>
* Pull request #97 merged.
2015-06-03 Giacomo Stelluti Scala <[email protected]>
* Pull request #87 merged.
* Pull request #95 merged.
2013-04-26 Giacomo Stelluti Scala <[email protected]>
* Released pre-release of Version 2.0.
2013-02-27 Giacomo Stelluti Scala <[email protected]>
* Implicit name is now available on OptionAttribute and OptionListAttribute
(added tests).
2013-02-26 Giacomo Stelluti Scala <[email protected]>
* Reduced mutability of ParserSettings, instance can be used once.
* Internal refactoring.
- some particular System.String extensions moved to ArgumentParser as made private.
2013-02-25 Giacomo Stelluti Scala <[email protected]>
* Reverted same StyleCop default (see doc/Contribution).
* tools/invariantstrtool.exe replaced by T4 template (project removed from GitHub).
* Removed superfluous abstraction.
* Removing IParserSettings, other superfluous abstraction.
* Applied KISS (keep it simple, stupid): removed nested ParserConfigurator in favor of
Parser(Action<ParserSettings>) new CommandLine.Parser ctor.
* Second KISS, removed IParser.
2013-02-23 Giacomo Stelluti Scala <[email protected]>
* When omitting longName default is property name (lower case) as issue #57.
* ParserConfigurator made nested type of Parser.
* ParserConfigurator::HelpWriter(TextWriter) renamed to ParserConfigurator::UseHelpWriter(...).
2013-02-22 Giacomo Stelluti Scala <[email protected]>
* Reverting back genericity from IParser.
2013-02-21 Giacomo Stelluti Scala <[email protected]>
* HelpText, internal refactoring to safely suppress a CodeAnalysis warning.
* Namespace Core renamed Infrastructure.
* Extensions methods refacored in one class per group.
* Fixed issue #6.
* Using VSSTUDIO CodeAnalysis instead of FxCop.
* CSharp and VB.NET template updated.
* Minor refactoring on HelpText.
2013-02-19 Giacomo Stelluti Scala <[email protected]>
* Trying to tatally complying to naming rules (see doc/Contributors).
* Parser.cs passed to StyleCop (skipped secondary rules -> will complied as a whole).
* Refactored unit test specific code in CommandLine.Parser with a delegates.
* StyleCop applied also to: ParserConfigurator, ParserContext, IParserSettings, ParserSettings, ParserState.
* Parser.cs -> internal refactoring.
* StyleCop: ParsingError, ParserException, BadOptionInfo, HelpText, HeadingInfo, FormatOptionHelpTextEventArgs,
EnglishSentenceBuilder, CopyrightInfo, BaseSentenceBuilder.
* StyleCop: ReflectionUtil, ReflectionCache, Pair, Assumes, ValueMapper, PropertyWriter, StringArrayEnumerator,
OptionMap, OptionInfo, OptionGroupParser, OneCharStringEnumerator, LongOptionParser, ArgumentParser.
* StyleCop: Attributes namespace (all important warnings solved).
* StyleCop: FULL COMPLIANT.
* Attributes in Text namespace moved to root namespace (issue #56).
* Parser class (made sealed):
- ALL bool ParseArguments(...) overload removed and replaced by:
bool ParseArguments<T>(string[] args, T options) where T : class
bool ParseArguments<T>(string[] args, T options, Action<string,object> onVerbCommand) where T : class
- ALL bool ParseArgumentsStrict(...) overload removed and replaced by:
bool ParseArgumentsStrict<T>(string[] args, T options, Action onFail = null) where T : class
bool ParseArgumentsStrict<T>(string[] args, object options, Action<string,object> onVerbCommand, Action onFail = null) where T : class
- bool WasVerbOptionInvoked(string verb) removed replaced by:
bool ParseArguments<T>(...,Action<string,object> onVerbCommand,...),
bool ParseArgumentsStrict<T>(...Action<string,object> onVerbCommand,...)
- static object GetVerbOptionsInstanceByName(string verb, object target, out bool found) marked obsolete
use HelpText::AutoBuild(object,string)
* HelpText class:
- added HelpText::AutoBuild(object,string)
2013-02-18 Giacomo Stelluti Scala <[email protected]>
* Added nuget_nuspec task to Rakefile.
* Added OptionInfo::ReceivedValue to solve an issue in OptionMap::EnforceRequiredRule (see issue #15).
2013-02-17 Giacomo Stelluti Scala <[email protected]>
* Fix: a strict overload ParseArguments(string[],object,TextWriter,int) has wrong name (oops);
renamed ParseArgumentsStrict(string[],object,TextWriter,int).
2013-02-16 Giacomo Stelluti Scala <[email protected]>
* Added ParsingCulture to IParserSettings.
* PropertyWriter, OptionInfo and ValueMapper now accepts CultureInfo in constructor.
* Changed a pair of tests to be compliant and verify.
* Default singleton parsing culture is CultureInfo.InvariantCulture.
* Version incremented to 1.9.4.225 beta.
2013-02-12 Giacomo Stelluti Scala <[email protected]>
* Minor generalized internal refactoring.
* Version incremented to 1.9.4.221 beta.
2013-02-12 Giacomo Stelluti Scala <[email protected]>
* Consolidating pull request #52 by @mizipzor.
* Version incremented to 1.9.4.219 beta.
2013-02-11 Giacomo Stelluti Scala <[email protected]>
* Defined IParserSettings. Now ParserSettings implements this interface.
* IParser and Parser depends on IParserSettings rather on default implementation.
* Version incremented to 1.9.4.217 beta.
2013-02-06 Giacomo Stelluti Scala <[email protected]>
* Solved an issue came out when solving https://github.com/gsscoder/commandline/issues/49
(see VerbsFixture.cs#172).
* Version incremented to 1.9.4.215 beta.
2013-02-02 Giacomo Stelluti Scala <[email protected]>
* ParsingErrorsHandler delegate replaced by Action<HelpText>.
* Fixed an issue with OptionMap test internal constructor.
* Version incremented to 1.9.4.211 beta.
2013-01-31 Giacomo Stelluti Scala <[email protected]>
* Added readonly property Settings of type ParserSettings to IParser, Parser.
* Added ParserConfigurator to configure the parser with lambda expressions (see isse #42).
* Version incremented to 1.9.4.209 beta.
2013-01-31 Giacomo Stelluti Scala <[email protected]>
* Namespace '.Internal' renamed to '.Core'.
* Types with extension methods moved to new namespace Extensions (following my latest conventions).
* Utility types moved to new Helpers namespace.
* Text/Attributes moved to {root}/Attributes folder.
* CommandLineParser renamed to Parser (yes, I finally dit it!).
- ICommandLineParser -> IParser
- CommandLineParserSettings -> ParserSettings
- CommandLineParserException -> ParserException
* FxCop can scan Debug assembly (because now Debug == Release assembly).
* Version incremented to 1.9.4.207 beta.
2013-01-29 Giacomo Stelluti Scala <[email protected]>
* Better constructor chaining in CommandLineParserSettings.
* ReflectionUtil leaved open for testing also in Release build (I'll try to remove S symbol
in every part of the project).
* Removed conditional compylation symbol #UNIT_TESTS from OptionAttribute.cs.
* Removed conditional compylation symbol #UNIT_TESTS from ArgumentParser.cs.
* Removed conditional compylation symbol #UNIT_TESTS from OptionInfo.cs.
* Used same key to sign both assemblies (main, tests).
* Removed DebugTests compilation target (tied to #UNIT_TESTS symbol).
* Added xunit.runners to solution.
* Removed CommandLine.Dist.sln, xbuild replaced by mdtool.
* Rakefile now build and test as whole.
* Version incremented to 1.9.4.205 beta.
2013-01-28 Giacomo Stelluti Scala <[email protected]>
* All name of test fixture methods changed to a new convention (e.g.: A_descriptive_assertion)
using https://gist.github.com/4655503.
2013-01-27 Giacomo Stelluti Scala <[email protected]>
* Started refactoring on test project (migrating from NUnit to Xunit).
2013-01-27 Giacomo Stelluti Scala <[email protected]>
* Fixed an issue in Rakefile. Now 'test' task is separeted form 'build' (defualt).
2013-01-27 Giacomo Stelluti Scala <[email protected]>
* Thanks to github user @marcells, we can reference CommandLine.dll from CommandLine.Tests.dll
keeping strong name.
* Used Fluent Assertions (http://nuget.org/packages/FluentAssertions/) because signed.
* Version incremented to 1.9.4.203 beta.
2013-01-25 Giacomo Stelluti Scala <[email protected]>
* Implemented issue #33 (https://github.com/gsscoder/commandline/issues/33) that
introduces ValueOptionAttribute.
* Internal Target type renamed to ValueMapper.
* OptionInfo property writing primitives refactored in PropertyWriter type.
* Added ValueOptionAttributeParsingFixture and new mock types.
* Version incremented to 1.9.4.201 beta.
2013-01-24 Giacomo Stelluti Scala <[email protected]>
* Sources in Utils dir moved to CommandLine.Utils namespace.
* Added type TargetExtensions to increase readability/reuse of code (now with ReflectionCache we can
query target instance without fear of performance loss).
* CommandLineParser refactored (also using new ParserContext type).
* Removed uncalled private code where detected by FxCop (CA1811).
* Minor generalized refactoring.
* Version incremented to 1.9.4.139 beta.
2013-01-24 Giacomo Stelluti Scala <[email protected]>
* src/CommonAssemblyInfo.cs generated with Rakefile.rb.
2013-01-23 Giacomo Stelluti Scala <[email protected]>
* All CommandLineParser partials merged.
* ReflectionUtil now caches data using ReflectionCache.
* Version incremented to 1.9.4.131 Beta.
2013-01-23 Giacomo Stelluti Scala <[email protected]>
* Enum Internal.ParserState renamed to PresentParerState to avoid confusion with class ParserState.
* TargetWrapper renamed to Target.
* Version incremented to 1.9.4.129 Beta.
2013-01-22 Giacomo Stelluti Scala <[email protected]>
* FxCop SuppressMessage attributes placed in right place (near source of issue).
2013-01-22 Giacomo Stelluti Scala <[email protected]>
* Refactored BaseOptionAttribute to avoid virtual member call in ctor in OptionAttribute (FxCop CA2214).
* OptionArrayAttribute and OptionListAttribute inherits directly from BaseOptionAttribute. This allows to
make OptionAttribute sealed (FxCop CA1813).
* Also VerbOptionAttribute derives now from BaseOptionAttribute.
* OptionInfo, OptionMap, ReflectionUtil modified to work directly with BaseOptionAttribute.
* Version incremented to 1.9.4.127 Beta.
2013-01-22 Giacomo Stelluti Scala <[email protected]>
* Added solution folder "Files" to CommandLine.sln.
* OptionMap constructor is now private. Instance is now created by two factory methods '::Create()'
derived by 'OptionInfo::CreateMap()'.
* OptionInfo.verbs.cs merged with OptionInfo.cs
* Added rake task 'strings' to regenerate SR.string.cs from SR.string.
* Version incremented to 1.9.4.125 Beta.
2013-01-22 Giacomo Stelluti Scala <[email protected]>
* CommandLine.snk regenerated, the current prevented the build process.
2013-01-20 Giacomo Stelluti Scala <[email protected]>
* Types renamed to comply naming rules (FxCop CA1711):
- (breaking) HandleParsingErrorsDelegate to ParsingErrorsHandler.
- (breaking) MultiLineTextAttribute to MultilineTextAttribute.
* HelpText::AutoBuild removed default parameter, created overload (FxCop CA1026).
* HelpText::MessageEnum removed as no more used.
* VerbOptionAttribute made sealed as it should be from begin(FxCop CA1813).
* Added property getter to (FxCop CA1044):
- HelpText::Copyright
- HelpText::Heading
- CommandLineParserSettings::* (internal -> public)
* Added property getter to (FxCop CA1019):
- MultilineTextAttribute
- ValueListAttribute (::ConcreteType, internal -> public).
* Attributes AssemblyLicenseAttribute and AssemblyUsageAttribute set to ComVisible=false
as the entire assembly(FxCop CA1405).
* StringUtil -> StringExtensions, we can use extension method because the required
compatibility is C# 3.0 compiler.
* Fixed disposable pattern implementation in CommandLineParser and CommandLineParserSettings.
* CommandLineParserException no more sealed and externally creatable.
* Version incremented to 1.9.4.123 Beta.
2013-01-20 Giacomo Stelluti Scala <[email protected]>
* Removed synchronization from OptionInfo and TargetWrapper: elaboration occurs in
one method call (::ParseArguments) and should not be divided across threads.
If yes, synchronization must be provided by developer not by the library.
* Version incremented to 1.9.4.121 Beta.
2013-01-20 Giacomo Stelluti Scala <[email protected]>
* Source in Core dir (public types) placed in tree root.
* Project SampleApp renamed to CommandLine.Demo (+ minor refactoring,
better comments).
* Version incremented to 1.9.4.119 Beta.
2013-01-19 Giacomo Stelluti Scala <[email protected]>
* Updated SR.strings.cs and tools/invariantstr.exe.
* Used correct NUnit version from NuGet (removed from tools dir).
* Updated Rakefile.rb.
2013-01-18 Giacomo Stelluti Scala <[email protected]>
* Added first draft of Rakefile.rb to source tree root.
* Dropped unmantained NAnt stuff.
* Added correct NUnit version in tools dir (NuGet -> NUnit.Runners do not work!).
2013-01-17 Giacomo Stelluti Scala <[email protected]>
* SR.string[.cs] managed with tools/invariantstr.exe (https://github.com/gsscoder/invariantstrtool).
* Version incremented to 1.9.4.117 Beta.
2013-01-17 Giacomo Stelluti Scala <[email protected]>
* Fixed issue #45 reported by @mizipzor (Alexander Fast).
* Version incremented to 1.9.4.115 Beta.
2013-01-17 Giacomo Stelluti Scala <[email protected]>
* Added CommandLineParser::WasVerbOptionInvoked to check for selected verb in a more clean way.
* Version incremented to 1.9.4.113 Beta.
2013-01-17 Giacomo Stelluti Scala <[email protected]>
* CommandLineParserSettings now implements IDisposable (it owns a TextWriter).
* CommandLineParser now implements IDisposable (it owns CommandLineParserSettings that now is dispsable).
* Version incremented to 1.9.4.111 Beta.
2013-01-16 Giacomo Stelluti Scala <[email protected]>
* Merged pull request #44 from @dbaileychess (Derek Bailey) that adds MetaKey to BaseOptionAttribute
(similar to python argparse).
* Version incremented to 1.9.4.109 Beta.
2013-01-16 Giacomo Stelluti Scala <[email protected]>
* Implemented 'strict parsing' as required by contributor Dan Nemec (github nemec) in issue #32.
* Defined message for some internal (developers eyes only) exceptions and placed in class
CommandLine.Internal.SR (simulating but without real resources).
* Fixed some verb commands issues.
* Added unit tests for 'strict parsing'.
* Version incremented to 1.9.4.107 Beta.
2013-01-16 Giacomo Stelluti Scala <[email protected]>
* Removed recently added #define directives.
* Project tree reorgranized (removed Verbs dir).
* Version incremented to 1.9.4.101 Beta.
2013-01-11 Giacomo Stelluti Scala <[email protected]>
* Removed dependency from CommandLineOptionsBase. Used instead an attribute named
ParserStateAttribute mapped on a property of type IParserState (provides get
accessor to let the library creates a default instance for you.
* Some minor refactoring (private methods, parameters name changed).
* Version incremented to 1.9.4.99 Beta.
2013-01-11 Giacomo Stelluti Scala <[email protected]>
* Manually merged contribution by github user rkayman (Robert Kayman) that extend use of
MultiLineTextAttribute (and hence derived types).
* Version incremented to 1.9.4.97 Beta.
2013-01-10 Giacomo Stelluti Scala <[email protected]>
* Source splitted again putting each type in its .cs file.
* Version incremented to 1.9.4.95 Beta.
2013-01-10 Giacomo Stelluti Scala <[email protected]>
* Merged pull request #25 from contributor mizipzor.
* Version incremented to 1.9.4.93 Beta.
2013-01-09 Giacomo Stelluti Scala <[email protected]>
* API change 00: in ctor string shortName -> char; property string ShortName -> char?
- BaseOptionAttribute
- HelpOptionAttribute
- OptionAttribute
- ParsingEror
- BadOptionInfo
* API change 01: short name with whitespace/line terminator is not allowed.
- BaseOptionAttribute (enforced in ShortName::set)
- tests/AttributesFixture.cs
* API change 02 (extension/non breaking): verbs
- tests/Mocks/OptionsWithVerbs.cs added
- tests/Mocks/OptionsWithVerbsHelp.cs added
- tests/Parser/VerbsFixture.cs added
- tests/Text/VerbsHelpTextFixture.cs added
- CommandLine.cs
- BaseOptionAttribute::DefaultValue and ::ShortName made virtual
- CommandLineParserSettings::StringComparison member added
- ReflectionUtil::RetrieveOptionProperty<T:OptionAttribute> member added
- introduced CMDLINE_VERBS preprocessor "public" directive (other are for "internal" use)
- CommandLineVerbs.cs added to implement verb commands (module is optional at source code level)
- #Core# -> expanded OptionInfo implementation
- #Attributes#
-> VerbOptionAttribute added (inherits from OptionAttribute)
-> HelpVerbOptionAttributed added (inherits from BaseOptionAttribute directly)
- #Parser#
-> expanded CommandLineParser implementation
- CommandLineText.cs
- added a trivial optional parameter to HelpText::AutoBuild for supporting verbs
* Comments: added missing comments to MultiLineTextAttribute type.
* IArgumentEnumerator doesn't inherit anymore from IDisposable (it was only a legacy of old design).
* Internal types moved to namespace CommandLine.Internal.
* ParsingError made sealed.
* License year range updated in code license region/comment.
* Code formatting
- privates (except ctor) moved at the end of types.
- braces around allo blocks (also one line code blocks).
- no braces on same construct line:
- except when all in one line
- except for object initializers
- some blank line removed for favor source inclusion.
* Version incremented to 1.9.4.91 Beta.
2012-12-22 Giacomo Stelluti Scala <[email protected]>
* Extended use of Should.Fluent to whole test project.
* Version incremented to 1.9.3.34 Stable.
2012-12-15 Giacomo Stelluti Scala <[email protected]>
* Test project refactored.
* Adopting Should.Fluent assertion library in unit tests.
* Version incremented to 1.9.3.33 rc1.
2012-12-14 Giacomo Stelluti Scala <[email protected]>
* Main assembly CommandLine.dll signed.
* Removed old commented code.
* Added missing XML documentation comments.
* Two (very) minor code refactoring changes.
* Version incremented to 1.9.3.31 rc0.
2012-12-09 Giacomo Stelluti Scala <[email protected]>
* Minor code refactoring suggested by ReSharper.
* Fixed bug reported by github user mizipzor about grow of CopyrightInfo
(id #BUG0006, ref.: https://github.com/gsscoder/commandline/issues/22).
* library/CommandLineText.cs/CopyrightInfo (CopyrightInfo)
Modified method ToString() for #BUG0006.
* tests/Text/CopyrightInfoFixture.cs
Added test ShouldNotGrowWhenConvertedToString() for #BUG0006.
* Version incremented to 1.9.3.29 rc0.
2012-11-30 Giacomo Stelluti Scala <[email protected]>
* Merged pull request #11 from github user jafin
(ref.: https://github.com/gsscoder/commandline/pull/11).
* All tests runned for verify changes -> all passed.
* Version incremented to 1.9.3.27.
2012-11-30 Giacomo Stelluti Scala <[email protected]>
* Fixed bug reported by github user jandler about numbers overflow
(id #BUG0005, ref.: https://github.com/gsscoder/commandline/issues/14).
* library/CommandLine.cs/OptionInfo (OptionInfo)
Method SetValueScalar(...) modified for #BUG0005.
* tests/CommandLineParserFixture.cs
Added new region #BUG0005 with 5 new tests.
* tests/CommandLine.cs
Removed old lines of commented code.
* Version incremented to 1.9.3.25.
2012-11-26 Giacomo Stelluti Scala <[email protected]>
* Fixed bug reported by github user sbambrick about negative numbers parsing
(id #BUG0004, ref.: https://github.com/gsscoder/commandline/issues/13).
* library/CommandLine.cs/ArgumentParser (ArgumentParser)
Methods Create(...) and IsInputValue(...) modified for #BUG0004.
* library/CommandLine.cs/StringUtil (StringUtil)
Added method 'bool IsNumeric(string)' used in modified ArgumentParser methods.
* tests/CommandLineParserFixture.cs
Added new region #BUG0004 with 8 new tests.
* Version incremented to 1.9.3.23.
2012-11-09 Giacomo Stelluti Scala <[email protected]>
* Merged pull request #10 from hugodahl for displaying all missing but required values.
* Current version set to: 1.9.3.21 beta.
2012-07-31 Giacomo Stelluti Scala <[email protected]>
* Changed projects target to Mono 4.0 Profile.
* Added tests ParseTwoUIntConsecutiveArray* to OptionArrayAttributeParsingFixture.
* Fixed the LongOptionParser type problem of parsing two consecutive arrays (issue from m1gu3l github user).
2012-06-18 Giacomo Stelluti Scala <[email protected]>
* Fixed issue with ReflectionUtil::GetAttribute / HelpText::AutoBuild.
* For now disabled some tests for these methods.
2012-06-13 Giacomo Stelluti Scala <[email protected]>
* Added fixture for unknown arguments (and first test).
2012-06-12 Giacomo Stelluti Scala <[email protected]>
* Merged pull request from Kevin Moore to support unknown arguments.
2012-06-04 Giacomo Stelluti Scala <[email protected]>
* Added tests for HelpText::AutoBuild.
* Fixed minor formatting error in HelpText::DefaultParsingErrorsHandler.
2012-05-31 Giacomo Stelluti Scala <[email protected]>
* Added errors heading in sentence builder.
* Added HelpText.DefaultParsingErrorsHandler for reduce code devoted to errors handling.
2012-05-29 Giacomo Stelluti Scala <[email protected]>
* Introduced AssemblyLicenseAttribute and AssemblyUsageAttribute for use with HelpText::AutoBuild().
* Added helper method to internal CommandLine.ReflectionUtil type.
* Core sources linked to Sample Application.
2012-05-27 Giacomo Stelluti Scala <[email protected]>
* Minor fix in HelpText::RenderParsingErrorsText().
* Beta promoted to RC0.
2012-05-20 Giacomo Stelluti Scala <[email protected]>
* Added tests for BaseOptionAttribute::DefaultValue.
* Setting a bad value for BaseOptionAttribute::DefaultValue raises
a CommandLineParserException.
2012-05-20 Giacomo Stelluti Scala <[email protected]>
* All option attributes that inherits from BaseOptionAttribute support initialization
via DefaultValue (this feature needs more tests).
* All solution (included tests project) now build also in Release config.
2012-05-18 Giacomo Stelluti Scala <[email protected]>
* Values are now converted using Thread.CurrentThread.CurrentCulture.
* Added tests for culutre-specific conversions.
2012-05-16 Giacomo Stelluti Scala <[email protected]>
* Added default to HelpOption.HelpText.
* Fixed a minor bug in HelpText constructor.
2012-05-15 Giacomo Stelluti Scala <[email protected]>
* Added default singleton CommandLineParser.Default.
* Added test fixture for CommandLineParser.Defualt.
2012-05-13 Giacomo Stelluti Scala <[email protected]>
------------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved;
. file replaced; { group start; } group end
-----------------------------------------------------------------------------------
* Text/HelpText.cs (HelpText)
Modified. Added HelpText.AddDashesToOption formatting property
(default = false).
* Text/Tests/HelpTextFixture.cs (HelpTextFixture)
Modified. Added tests from HelpText.AddDashesToOption.
2012-05-05 Giacomo Stelluti Scala <[email protected]>
------------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved;
. file replaced; { group start; } group end
-----------------------------------------------------------------------------------
Release promoted to beta due to stability.
Modified project structure.
Added unix build files.
Published on github.com/.
2011-09-17 Giacomo Stelluti Scala <[email protected]>
------------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved;
. file replaced; { group start; } group end
------------------------------------------------------------------------------------
[a] Evolutionary Maintenance: Added a new feature to report a more detailed help
text when user input violates parsing rules.
This release bring this feature to the next level.
+ Core/ParsingError.cs (ParsingError)
Added. Class that records a parsing error.
+ Core/BadOptionInfo.cs (BadOptionInfo)
Added. This class is used as a light reference for bad options.
+ Utility/StringUtil.cs (StringUtil)
Added. Basic string utility class.
+ Text/EnglishSentenceBuilder.cs (EnglishSentenceBuilder)
Added. Used with StringBuilder for localize text.
+ Text/BaseSentenceBuilder.cs (BaseSentenceBuilder)
Added. The base class for localized sentence building.
> Core/PostParsingState.cs (PostParsingState)
Moved. This is the right place for this class.
* Parser/CommandLineOptionsBase.cs (CommandLineOptionsBase)
Modified. This class was refactored for [a].
* Core/ArgumentParser.cs (ArgumentParser)
Modified. Modified for [a].
* Parser/CommandLineParser.cs (CommandLineParser)
Modified. Modified for [a].
* Core/OptionMap.cs (OptionMap)
Modified. Modified for [a].
* Text/HelpText.cs (HelpText)
Modified. Modified for [a].
* Text/TESTS/HelpTextFixture.cs (HelpTextFixture)
Modified. Modified for [a].
2011-07-06 Giacomo Stelluti Scala <[email protected]>
------------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved;
. file replaced; { group start; } group end
------------------------------------------------------------------------------------
[a] Evolutionary Maintenance: Added a new feature to report a more detailed help
text when user input violates parsing rules.
# discussion 204518 (http://commandline.codeplex.com/discussions/204518)
# discussion 249258 (http://commandline.codeplex.com/discussions/249258)
* Solution, Project Files {CommandLine.sln, CommandLine.csproj[.user], SampleApp.csproj[.user]}
Modified. Project format updated to MS Visual C# 2010 Express.
NOTE: the target framework is still .NET Framework 2.0.
. ../../lib/nunit.framework.dll
Replaced. Assembly replaced with the one supplied with NUnit version 2.5.10.11092.
* Text/TESTS/HelpTextFixture.cs (HelpTextFixture)
Modified. Added tests DetailedHelpWith*() for implent and test [a].
+ TESTS/Mocks/ComplexOptions.cs (ComplexOptions)
Added. Mock object needed (for now) to HelpTextFixture test type.
+ Parser/CommandLineOptionsBase.cs (CommandLineOptionsBase)
Added. New abstract type used when you need to get parsing errors.
+ Parser/PostParsingState.cs (PostParsingState)
Added. Internal type that models the state of the parser at the and of the job.
* Parser/CommandLineParser.cs (CommandLineParser)
Modified. Added private method SetPostParsingStateIfNeeded(object,PostParsingState). The type was modified for [a].
* Core/ArgumentParser.cs (ArgumentParser)
Modified. Added property PostParsingState LastPostParsingState{get,set} and method DefineOptionThatViolatesFormat(OptionInfo).
Again, the type was modified for [a].
* Core/LongOptionParser.cs (LongOptionParser)
Modified. The method Parse(IArgumentEnumerator,OptionMap,object) was modified for [a].
* Core/OptionGroupParser.cs (OptionGroupParser)
Modified. Also the method Parse(IArgumentEnumerator,OptionMap,object) was modified for [a].
* Text/HelpText.cs (HelpText)
Modified. Added method RenderParsingErrorsText(CommandLineOptionsBase) and protected method GetMessageText(MessageEnum) to handle parsing error rendering (see [a]).
* Core/OptionInfo.cs (OptionInfo)
Modified. Added property NameWithSwitch{get}.
* Core/OptionMap.cs (OptionMap)
Modified. The method EnforceRules() was modified for handling [a] requirements.
2010-05-19 Giacomo Stelluti Scala <[email protected]>
-----------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved
{ group start; } group end
-----------------------------------------------------------------------------------
* Text/HelpText.cs (HelpText)
Modified. Changed incorrect spelling of a variable of GetMaxLength(IList<BaseOptionAttribute>) method
(see issue #R20100506.00 - http://commandline.codeplex.com/WorkItem/View.aspx?WorkItemId=10554).
Parameterless constructor made public.
Added more public constructors.
(see issue #R20100507.00 - http://commandline.codeplex.com/WorkItem/View.aspx?WorkItemId=10573)
* Text/TESTS/HelpTextFixture.cs (HelpTextFixture)
Modified. Added test
::InstancingWithParameterlessConstructor
2010-03-18 Giacomo Stelluti Scala <[email protected]>
-----------------------------------------------------------------------------------
+ file added; * file modified; - file deleted; ~ file renamed; > file moved
{ group start; } group end
-----------------------------------------------------------------------------------