mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-22 20:09:46 +08:00
Clean up all code using CodeMaid
This commit is contained in:
@@ -1,15 +1,34 @@
|
||||
using System;
|
||||
/**
|
||||
* Grasscutter Tools
|
||||
* Copyright (C) 2023 jie65535
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace GrasscutterTools.Utils
|
||||
{
|
||||
/// <summary>
|
||||
/// Simple command line toggles parser:
|
||||
/// Simple command line toggles parser:
|
||||
/// - toggles are identified with (any number of) '-' prefixes
|
||||
/// - toggle can be with or without associated value
|
||||
/// - toggle can be with or without associated value
|
||||
/// - toggles are case-insensitive
|
||||
///
|
||||
///
|
||||
/// <example>--toggle_without_value -toggle value</example>
|
||||
/// <see cref="https://gist.github.com/jchapuis/64b5adf9d0f3062e6a72dded110a6028"/>
|
||||
/// </summary>
|
||||
@@ -39,4 +58,4 @@ namespace GrasscutterTools.Utils
|
||||
|
||||
public bool IsEmpty => toggles.Count == 0;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user