Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Print warning if using deprecated --packName param
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Jan 17, 2022
1 parent 05ec119 commit a67ae3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/SquirrelCli/Options.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Squirrel;
using Squirrel.Lib;
using Squirrel.SimpleSplat;

namespace SquirrelCli
{
internal abstract class BaseOptions : ValidatedOptionSet
{
public string releaseDir { get; private set; } = ".\\Releases";

protected static IFullLogger Log = SquirrelLocator.CurrentMutable.GetService<ILogManager>().GetLogger(typeof(BaseOptions));

public BaseOptions()
{
Add("r=|releaseDir=", "Output directory for releasified packages", v => releaseDir = v);
Expand Down Expand Up @@ -93,7 +98,8 @@ public PackOptions()
Remove("p");

// hidden arguments
Add("packName=", "The name of the package to create", v => packId = v, true);
Add("packName=", "The name of the package to create",
v => { packId = v; Log.Warn("--packName is deprecated. Use --packId instead."); }, true);

// public arguments, with indexes so they appear before ReleasifyOptions
InsertAt(1, "u=|packId=", "Unique identifier for application/package", v => packId = v);
Expand Down

0 comments on commit a67ae3e

Please sign in to comment.